<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<table border="1px solid #ccc" width="800px" align="center">
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>价格</th>
        <th>性别</th>
        <th>日期</th>
    </tr>

    {foreach ($list as $key=>$obj)}
    <tr>
        <td>{$key}--{$obj->id}</td>
        <td>{$obj->name}</td>
        <td>{$obj->age}</td>
        <td>{$obj->price}</td>
        <td>{$obj->sex}</td>
        <td>{$obj->create_time}</td>
    </tr>
    {/foreach}
</table>


<table border="1px solid #ccc" width="800px" align="center">
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>价格</th>
        <th>性别</th>
        <th>日期</th>
    </tr>

    {/*volist name='list' id='obj' offset='2' length='2'*/}
    {/*volist name='list' id='obj' mod='2' empty='没有数据'*/}
    {/*eq name='mod' value='0'*/}
    {volist name='list' key='k' id='obj' }
    <tr>
        <td>{$k}--{$obj->id}</td>
        <td>{$obj->name}</td>
        <td>{$obj->age}</td>
        <td>{$obj->price}</td>
        <td>{$obj->sex}</td>
        <td>{$obj->create_time}</td>
    </tr>
    {/*eq*/}
    {/volist}
</table>

{for start='1' end='100' name='i' step='3'}
  {$i}
{/for}
</body>
</html>